home *** CD-ROM | disk | FTP | other *** search
- ## date_test
- # this script uses the internal, debugging directive '-date'
- # -date simply tells WinCron to interpret the argument as a date and print
- # out its interpretation. THEY SHOULD MATCH! If they don't then you are not entering
- # the date in the same format that you have set in your regional settings in the Windows
- # Control Panel.
- # Be aware, while the following script runs fine on my system, it may fail on your system.
- # it is your responsibility to make sure you give well formed dates to WinCron.
-
- {
- -name date_test
- -start
- -action -call 12hour
- #-action -inc 0 0 0 1
- }
-
- ## Test 12 hour format
- # Set your regional settings 'time format' to 12 hour format to run this test.
- # Note: Running the 12 hour test against a system setup with 24 hour time format, will succeed.
- {
- -name 12hour
-
- # test date time
- -action -date 8/3/99 12:21:00 AM
-
- -action -date 8/3/99 1:21:00 AM
- -action -date 8/3/99 1:21:00 PM
-
- -action -date 8/3/99 11:21:00 AM
- -action -date 8/3/99 11:21:00 PM
-
- # test time only
- -action -date -time 12:21:00 AM
- -action -date -time 12:21:00 PM
-
- -action -date -time 1:21:00 AM
- -action -date -time 1:21:00 PM
-
- -action -date -time 11:21:00 AM
- -action -date -time 11:21:00 PM
-
- # okay
- #-action -date 8-auG-99 2:21:00 PM
-
- #-action -date 08-auG-1999 2:21:00 PM
-
- -action -print 12 hour tests complete!
- }
-
- ## Test 24 hour format
- # Set your regional settings 'time format' to 24 hour format to run this test.
- # Note: Running the 24 hour test against a system setup with 12 hour time format, will fail.
- {
- -name 24hour
-
- # test date time
- -action -date 8/3/99 0:21:00
-
- -action -date 8/3/99 1:21:00
- -action -date 8/3/99 13:21:00
-
- -action -date 8/3/99 11:21:00
- -action -date 8/3/99 23:21:00
-
- # test time only
- -action -date -time 0:21:00
- -action -date -time 12:21:00
-
- -action -date -time 1:21:00
- -action -date -time 13:21:00
-
- -action -date -time 11:21:00
- -action -date -time 23:21:00
-
- # okay
- #-action -date 8-auG-99 2:21:00
-
- #-action -date 08-auG-1999 2:21:00
-
- -action -print 24 hour tests complete!
- }
-